const http = uni.$u.http

//获取距离现在日期最近的赛程信息
export function getLatelyScheduleApi(params){
	return http.get('/api/Match/GetLatelySchedule?topLevelId='+params.topLevelId+'&twoLevelId='+params.twoLevelId)
}

//获取比赛信息
export function getLeadingMatchPageListApi(params){
	return http.post('/api/Match/GetLeadingMatchPageList',params)
}

//获取订阅模板ID
export function getTemplateIdApi(){
	return http.get('/api/SendMessage/GetTemplateId')
}
//创建订阅消息
export function createdSendMessageApi(params){
	return http.post('/api/SendMessage/Created',params)
}
//更新比赛比分
export function updateFractionApi(params){
	return http.post('/api/Match/UpdateFraction',params)
}